package com.example.machine.service;

import com.example.machine.mapper.UserInfoMapper;
import com.example.machine.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2024-02-01
 * Time: 16:49
 */
@Service
public class  UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    //调用mapper完成和数据库的交互工作
    public UserInfo getUserInfoByName(String name){
        return userInfoMapper.selectUserByName(name);
    }


}
